package com.designpattern.behavior.command;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Administration
 * @date 2021/10/21 - 13:48 - 星期四
 * @project 行为模式中的命令模式   实现者/接收者（Receiver）角色
 * @package com.designpattern.behavior.command
 * @by 晨
 */
public class Order {

    // 餐桌号码
    private int diningTable;

    // 用来存储餐名并记录份数
    private Map<String, Integer> foodDic = new HashMap<>();

    public int getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFoodDic() {
        return foodDic;
    }

    public void setFoodDic(String name, Integer num) {
        foodDic.put(name,num);
    }
}
